const path = require('path');
module.exports = {
    publicPath: '/',
    lintOnSave: false,
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                path.resolve(__dirname, "src/index.less")
            ]
        }
    },
    configureWebpack: { devtool: 'source-map' },
    productionSourceMap: false,
    devServer: {
        port: 8088,
        proxy: {
            "/cipher": {
                target: "http://192.168.3.220:3003", // 测试地址
                pathRewrite: {
                    "^/cipher": ""
                },
                changeOrigin: true,
                ws: false
            }
        }
    }
}